<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: zsh
  Date: 2020/9/14
  Time: 21:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<c:if test="${not empty cookie.username && not empty cookie.password}">
    <jsp:forward page="/LoginServlet?username=${cookie.username.value}&password=${cookie.password.value}"></jsp:forward>
</c:if>


<form action="${pageContext.request.contextPath}/LoginServlet" method="post">
    用户名：<input type="text" name="username" ><br>
    密码：<input type="password" name="password" ><br>
    <input type="checkbox" name="rememberMe" value="rememberMe">7天免登入<br>
    <input type="submit" value="登录"><br>
</form>

</body>
</html>
